/*
 * Flow.java
 *
 * Created on September 6, 2006, 11:42 AM
 *
 * (C) 2006 R. Alexander Milowski
 */

package com.smallx.xproc.library;

import java.util.ArrayList;
import org.infoset.xml.Name;

/**
 * A flow is a a chain of components with a primary
 * input/output chain.  Each entry in the list is bound to
 * the previous via the binding name.  At the start of the
 * list, the binding name must be satistifed by the using
 * environment.  Similarly, at the end of the chain, the
 * unbound output is the result of the flow.
 * @author alex
 */
public class Flow extends ArrayList<ChainedComponent> {

   Name inputPort;
   Name outputPort;
   
   /** Creates a new instance of Flow */
   public Flow(Name inputPort,Name outputPort) {
      this.inputPort = inputPort;
      this.outputPort = outputPort;
   }

   public Name getInputPort() {
      return inputPort;
   }

   public void setInputPort(Name inputPort) {
      this.inputPort = inputPort;
   }

   public Name getOutputPort() {
      return outputPort;
   }

   public void setOutputPort(Name outputPort) {
      this.outputPort = outputPort;
   }
   
}
